import request from '@/utils/request'

// 查询合同类型列表
export function listContractCategory(query) {
  return request({
    url: '/lease/ContractCategory/list',
    method: 'get',
    params: query
  })
}

// 查询合同类型详细
export function getContractCategory(id) {
  return request({
    url: '/lease/ContractCategory/' + id,
    method: 'get'
  })
}

// 新增合同类型
export function addContractCategory(data) {
  return request({
    url: '/lease/ContractCategory',
    method: 'post',
    data: data
  })
}

// 修改合同类型
export function updateContractCategory(data) {
  return request({
    url: '/lease/ContractCategory',
    method: 'put',
    data: data
  })
}

// 删除合同类型
export function delContractCategory(id) {
  return request({
    url: '/lease/ContractCategory/' + id,
    method: 'delete'
  })
}

// 导出合同类型
export function exportContractCategory(query) {
  return request({
    url: '/lease/ContractCategory/export',
    method: 'get',
    params: query
  })
}